<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of MenyItems
 *
 * @author Богдан
 */
class MenuItems extends CWidget
{
   
    public $catalogType_id=0;
    public function run()
    {
        $catalogs = Catalog::model()->findAll('catalog_type_id=:catalog_type_id', array('catalog_type_id'=> $this->catalogType_id));
        
        $this->render('menuItems', array('catalogs'=>$catalogs));
    }
    
    
}
